/**
 * 
 */
package test.sell.baolande;

import java.util.Arrays;

/**
 * @project RaedNote
 * @version 1.0
 * @company 
 * @fileType CharSort CharSort.java
 * @author huxh
 * @date 2012-7-5
 */
/**
 * 
 * @author huxh
 * @date 2012-7-5 
 */
public class CharSort {

	public static void main(String[] args) {
		char[] v1={'a','d','c'};
		char[] v2={'d','c','f'};;
		Arrays.sort(v1);
		Arrays.sort(v2);
		
		show(v1);
		System.out.println("----------------------------------");
		show(v2);
		
		System.out.println("----------------------------------");
		
		System.out.println(Arrays.binarySearch(v1, 'a'));
		
	}
	
	public static void show(char[] chars) {
		for(char c : chars)
			System.out.println(c);
	}
	
}
 